package com.lnsf.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/*
 * 用户实体对象
 * 2017-07-03
 */
public class Employee {
	private int empNo;
	private String ename;
	private String job;
	private Employee mgr;
	/*@DateTimeFormat(pattern="yyyy-MM-dd")*/
	private Date hiredate;
	private float sal;
	private float comm;
	
	private Department department;
	public int getEmpNo() {
		return empNo;
	}
	public void setEmpNo(int empNo) {
		this.empNo = empNo;
	}
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public Employee getMgr() {
		return mgr;
	}
	public void setMgr(Employee mgr) {
		this.mgr = mgr;
	}
	public Date getHiredate() {
		return hiredate;
	}
	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}
	public float getSal() {
		return sal;
	}
	public void setSal(float sal) {
		this.sal = sal;
	}
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}
	
	public Employee() {
		super();
	}
	public float getComm() {
		return comm;
	}
	public void setComm(float comm) {
		this.comm = comm;
	}
	public Employee(int empNo, String ename, String job, Employee mgr, Date hiredate, float sal, float comm,
			Department department) {
		super();
		this.empNo = empNo;
		this.ename = ename;
		this.job = job;
		this.mgr = mgr;
		this.hiredate = hiredate;
		this.sal = sal;
		this.comm = comm;
		this.department = department;
	}
	@Override
	public String toString() {
		return "Employee [empNo=" + empNo + ", ename=" + ename + ", job=" + job + ", mgr=" + mgr + ", hiredate="
				+ hiredate + ", sal=" + sal + ", comm=" + comm + ", department=" + department + "]";
	}
	
	
	
	
	
	
	
}
